package com.ruoyi.wbgame.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 游戏发布对象 wb_game_publish
 * 
 * @author guguofu
 * @date 2021-04-16
 */
public class WbGamePublish extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 教师用户id */
    private Long teacherId;

    /** 游戏id */
    private Long gameId;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 发布人 */
    @Excel(name = "发布人")
    private String publishBy;

    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setGameId(Long gameId) 
    {
        this.gameId = gameId;
    }

    public Long getGameId() 
    {
        return gameId;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setPublishBy(String publishBy) 
    {
        this.publishBy = publishBy;
    }

    public String getPublishBy() 
    {
        return publishBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("teacherId", getTeacherId())
            .append("gameId", getGameId())
            .append("publishTime", getPublishTime())
            .append("publishBy", getPublishBy())
            .toString();
    }
}
